import { Action } from 'redux'
import { ReportITF, StepRecordITF } from '@INTERFACES/DataCenter'
import { PainLogITF } from '@INTERFACES/PainLog'
import Calendar from '@COMPONENTS/Calendar/types/Calendar'

export interface DataCenterActionITF extends Action {
  records?: StepRecordITF[]
}

export interface DataCenterGetLogsActionITF extends Action {
  dateBucket: string
}

export interface DataCenterDeleteLoggActionITF extends DataCenterGetMonthLogActionITF {
  logId: string
}

export interface DataCenterGetMonthLogActionITF extends Action {
  bucket: string
  pId: string
}

export interface DataCenterStateITF {
  todayStepRecord: StepRecordITF | null
  todayPainLog: PainLogITF | null
  reportData: ReportITF | null
  painLogs?: PainLogITF[]
  monthPainLogs?: Calendar.Mark[]
}
